﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DynaBoard
{
    public class RequestorAddress
    {
        private readonly string address;

        public RequestorAddress()
        {
            this.address = HttpContext.Current.Request.UserHostAddress;
        }

        /// <summary>Gets the IP address.</summary>
        public override string ToString()
        {
            return this.address;
        }

        public static implicit operator string(RequestorAddress address)
        {
            return address.ToString();
        }
    }
}
